// import
const mongoose = require("mongoose");

// create Schema
const accountsSchema = new mongoose.Schema({
  title: String,
  remarks: String,
  type: Number,
  account: String,
  time: String,
  remarks: String,
  userid:String,
  // userid: mongoose.Schema.Types.ObjectId 老师写的，但是在我的session中userid是字符串，所以，如果需要匹配，也是通过这个字符串来匹配测
});

// create Model
const accountsModel = mongoose.model("accounts", accountsSchema);

// export
module.exports = accountsModel;
